/*
 * clientmain.cpp
 *
 *  Created on: Apr 21, 2011
 *      Author: Alan Mattila
 */

#include <QtCore>
#include <QtGui>
#include <QApplication>

#include <string>

#include "testclient.h"

using namespace std;

int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
	string hostname = HOSTNAME;
	if(argc == 2)
	{
		hostname = argv[1];
	}
	testclient client(NULL, hostname);
	client.show();
	return app.exec();

	/*

	string hostname = argv[1];
	cout << "Info: hostname = " << hostname << endl;

	NetworkClient *client = new NetworkClient(hostname);
	Board *board = client->GetBoard();

	cout << *board;

	if(client->ConnectToServer())
	{
		cout << "Error: error while connecting to server.\n";
		return 1;
	}

	cout << *board;

	return 0;*/
}
